#include "stdafx.h"
#include "global.h"
void hexprint(char *buf,int len)
{
	int i;
	for(i=0;i<len;i++)
	{
		printf("%02x ",(unsigned char)(buf[i]));
		if((i+1)%16==0)
			printf("\r\n");
	}
	printf("\r\n");
}